import linear_algebra as la

if __name__ == "__main__":
    v1 = la.Vector([5, 2])
    v2 = la.Vector([3, 4])

    print("v1 =", v1)
    print("v2 =", v2)
    print("+v1 =", +v1)
    print("-v2 =", -v2)
    print("v1 + v2 =", v1 + v2)
    print("v1 - v2 =", v1 - v2)
    print("v1 * 2 =", v1 * 2)
    print("2 * v2 =", 2 * v2)

    zero2 = la.Vector.zero(2)
    print("zero2 =", zero2)
    print("v1 + zero =", v1 + zero2)

    print("v1's norm is", v1.norm())
    print("v1's normalize vector is", v1.normalize())
    print("v2's normalize vector is", v2.normalize())
    #print("zero2's normalize vector is", zero2.normalize())
    print("v1 * v2 =", v1.dot(v2))

    v3 = la.Vector([5, 2])
    print("v1 == v3 ?", v1 == v3)
    print("v2 == v3 ?", v2 == v3)